package com.zusmart.base.network.message;

import com.zusmart.base.future.FutureListener;
import com.zusmart.base.future.support.AbstractFuture;
import com.zusmart.base.network.ChannelContext;

public class MessageFuture extends AbstractFuture<MessageFuture, FutureListener<MessageFuture>> {

	private final ChannelContext session;
	private final Message message;

	public MessageFuture(ChannelContext session, Message message) {
		this.session = session;
		this.message = message;
	}

	public Message getMessage() {
		return this.message;
	}

	public ChannelContext getSession() {
		return this.session;
	}

	@Override
	protected MessageFuture getFuture() {
		return this;
	}

}